package com.webapp;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/")
public class WebAppController {

	Logger logger = Logger.getLogger(WebAppController.class);

	@RequestMapping(method = RequestMethod.GET)
	public String app(ModelMap map) {

		logger.info("Before Loading the class");

		try {
			Class.forName("com.mysql.jdbc.Driver");
			logger.info("delta--------------------===theta");
			System.out.println("safe_heaven <|>");
		} catch (Exception e) {
			logger.error("Exception in loading the mysql driver", e);
			System.out.println("safe_heaven");
			e.printStackTrace();
		}

		return "index";
	}

}
